/*
 * Created by: vadikv
 * Created: Sunday, April 06, 2008
 */

using fit;
using OneDayModel.Tests.Fits.UIUsers;

namespace OneDayModel.Tests.Fits.Fixtures.Scenarios
{
    public class ExistingUserProfileFixture : Fixture
    {
        private ExisitngUserProfileUser exisitngUserProfileUser;

        private void NewUser()
        {
            UsersFactory userFactory =
                (UsersFactory)TestUtils.ContextManager.TestContext[typeof(UsersFactory).ToString()];
            exisitngUserProfileUser = userFactory.GetExistingUserProfileUser();

        }

        public void NavigateToUserProfile(string userAlias)
        {
            NewUser();
            exisitngUserProfileUser.OpenUserProfile(userAlias);
        }

        public string ShownAttributes()
        {
            return exisitngUserProfileUser.GetShownAttributes();
        }
        
        public string ShownRoles()
        {
            return exisitngUserProfileUser.GetShownRoles();
        }
        
        public string EditableAttributes()
        {
            return exisitngUserProfileUser.GetEditableAttributes();
        }
    }
}